import { viteBundler } from '@vuepress/bundler-vite'
import { defaultTheme } from '@vuepress/theme-default'
import { defineUserConfig } from 'vuepress'
import { markdownChartPlugin } from '@vuepress/plugin-markdown-chart'

export default defineUserConfig({
  lang: 'zh-CN',
  title: 'AI辅助',
  head: [
    ['link', { rel: 'icon', href: '/circle_logo2.png' }],
    ['link', { rel: 'stylesheet', href: '/.vuepress/styles/index.css' }]
  ],
  bundler: viteBundler(),
  plugins: [
    markdownChartPlugin({
      // 启用 Markmap
      markmap: true,
    }),
  ],
  theme: defaultTheme({
    logo: '/circle_logo2.png',
    navbar: [
      {
        text: '开始',
        link: '/getting-started.md',
      }/*,
      {
        text: '原型',
        link: '/posts/prototype.md',
      }*/
    ]
  })

})